const app = getApp()
Page({
    data: {
        navTitle: "食材",
        icon_next_page: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_next_page.png",
        // screenHeight: app.globalData.systemInfo.screenHeight,
        // windowHeight: app.globalData.systemInfo.windowHeight,
        // kMarginTop: app.globalData.navigationBarHeight,
        // navBarHeight: app.globalData.navigationBarHeight,
    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {

        var that = this;
        var tasteList = [
            {
                taste_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_new_vegetarianism.png",
                taste_name: "绿色蔬菜"
            },
            {
                taste_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_starch_diet.jpg",
                taste_name: "淀粉类"
            },
            {
                taste_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_ginger_diet.jpg",
                taste_name: "生姜"
            },
            {
                taste_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_eggs_diet.jpg",
                taste_name: "蛋类"
            },
            {
                taste_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_seafood_diet.jpg",
                taste_name: "海鲜"
            },
            {
                taste_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_beef_diet.jpg",
                taste_name: "牛羊肉"
            },
            {
                taste_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_onion_diet.jpg",
                taste_name: "香葱"
            },
            {
                taste_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_fungus_diet.jpg",
                taste_name: "菌菇"
            },
            {
                taste_image: "https://ai-cdn.joyoung.com/ia/images/dietary/icon_new_sweet.png",
                taste_name: "桃子"
            }
        ]

        that.setData({
            tasteList: tasteList
        });

    },

    onShow: function() {

    },

})
